package com.gla.giliair.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * planemodel
 * @author 
 */
@ApiModel(value="com.gla.giliair.entity.Planemodel飞机机型表")
@Data
public class Planemodel implements Serializable {
    /**
     * 飞机机型id
     */
    @ApiModelProperty(value="飞机机型id")
    private Long planemodelId;

    /**
     * 飞机机型名称
     */
    @ApiModelProperty(value="飞机机型名称")
    private String planemodelName;

    /**
     * 头等舱总数
     */
    @ApiModelProperty(value="头等舱总数")
    private Integer firstClassTotality;

    /**
     * 商务舱总数
     */
    @ApiModelProperty(value="商务舱总数")
    private Integer businessClassTotality;

    /**
     * 经济舱总数
     */
    @ApiModelProperty(value="经济舱总数")
    private Integer economyClassTotality;

    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value="更新时间")
    private Date updateTime;

    /**
     * 是否被删除：0->否；1->是
     */
    @ApiModelProperty(value="是否被删除：0->否；1->是")
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Planemodel other = (Planemodel) that;
        return (this.getPlanemodelId() == null ? other.getPlanemodelId() == null : this.getPlanemodelId().equals(other.getPlanemodelId()))
            && (this.getPlanemodelName() == null ? other.getPlanemodelName() == null : this.getPlanemodelName().equals(other.getPlanemodelName()))
            && (this.getFirstClassTotality() == null ? other.getFirstClassTotality() == null : this.getFirstClassTotality().equals(other.getFirstClassTotality()))
            && (this.getBusinessClassTotality() == null ? other.getBusinessClassTotality() == null : this.getBusinessClassTotality().equals(other.getBusinessClassTotality()))
            && (this.getEconomyClassTotality() == null ? other.getEconomyClassTotality() == null : this.getEconomyClassTotality().equals(other.getEconomyClassTotality()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getIsDeleted() == null ? other.getIsDeleted() == null : this.getIsDeleted().equals(other.getIsDeleted()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPlanemodelId() == null) ? 0 : getPlanemodelId().hashCode());
        result = prime * result + ((getPlanemodelName() == null) ? 0 : getPlanemodelName().hashCode());
        result = prime * result + ((getFirstClassTotality() == null) ? 0 : getFirstClassTotality().hashCode());
        result = prime * result + ((getBusinessClassTotality() == null) ? 0 : getBusinessClassTotality().hashCode());
        result = prime * result + ((getEconomyClassTotality() == null) ? 0 : getEconomyClassTotality().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getIsDeleted() == null) ? 0 : getIsDeleted().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", planemodelId=").append(planemodelId);
        sb.append(", planemodelName=").append(planemodelName);
        sb.append(", firstClassTotality=").append(firstClassTotality);
        sb.append(", businessClassTotality=").append(businessClassTotality);
        sb.append(", economyClassTotality=").append(economyClassTotality);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}